<template>
	<view>
		<Header title="云上坚果"   colorLeft="white" nameLeft="arrow-left" ref="left" ></Header>
		
		
		<!-- <button @click="get">按钮</button> -->
		<view class="main_wrap">
			<view class="main bred">
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">设置账号</text>
					</view>
				</view>
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">修改密码</text>
					</view>
				</view>
				
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">手机摄像头</text>
					</view>
					<view class="item_right">
						<van-switch :checked="checked" @change="onChange"  active-color="#01e266" size="17"/>
					</view>
				</view>
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">位置信息</text>
					</view>
					<view class="item_right">
						<van-switch :checked="checked" @change="onChange"   active-color="#01e266" size="17"/>
					</view>
				</view>
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">手机存储</text>
					</view>
					<view class="item_right">
						<van-switch :checked="checked" @change="onChange"  size="17" active-color="#01e266"/>
					</view>
				</view>
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">关于我们</text>
					</view>
				</view>
				<view class="main_item">
					<view class="item_left">
						<view class="icon">
							<image src="../../static/icon/my.png"></image>
						</view>
						<text class="set">问题反馈</text>
					</view>
				</view>
				
				
			</view>
		</view>
		<view class="tuichu">
			<view>退出登录</view>
		</view>
		<!-- <van-tabbar :active="active" @change="tabChange" :placeholder="true">
		  <van-tabbar-item icon="home-o">标签</van-tabbar-item>
		  <van-tabbar-item icon="search">标签</van-tabbar-item>
		  <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
		  <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
		</van-tabbar> -->
		
		<TabBar></TabBar>
		
	</view>
</template>

<script>
	import Header from "../../components/header.vue"
	import TabBar from "../../components/tabBar.vue"
	export default {
		data() {
			return {
				checked:true,
				active:0
			}
		},
		onShow(){
			
		},
		components:{
			Header,
			TabBar
		},
		methods: {
			onChange(event) {
			    // 需要手动对 checked 状态进行更新
				this.checked = event.detail
		},
		
		// get(){
		// 	console.log(this.$refs.left)
		// }
		
		
		
		
		
		
		
		}
	}
</script>

<style  lang="scss" scoped>
/deep/ .van-nav-bar__content{
		background-color: #22292c !important;
		
	}
	
	.main_wrap{
		padding: 42rpx 35rpx 0 35rpx;
		.main{
			padding: 44rpx 60rpx 88rpx;
			border-radius: 15rpx;
			// border: 1px solid red;
			border: 1px solid #ddd;
			box-shadow: 5rpx 5rpx 5rpx  #dddddd;
			
			.main_item{
				border-bottom: 1px solid #bbbbbb;
				padding-bottom: 25rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 44rpx;
				
				&:last-child{
					margin-bottom: 0;
				}
				.item_left{
					display: flex;
					align-items: center;
					.icon{
						height: 44rpx;
						
						image{
							width: 44rpx;
							height: 44rpx;
						}
					}
					.set{
						font-size: 44rpx;
						color: #000000;
						margin-left: 52rpx;
					}
				}
			}
		}
	}
	.tuichu{
		display: flex;
		justify-content: center;
		
		view{
			// width: 270rpx;
			// height: 66rpx;
			background-color: #d9d5d5;
			color: #000000;
			border: 1px solid #bbbbbb;
			padding: 20rpx 80rpx;
			border-radius: 10rpx;
			margin-top: 110rpx;
		}
		
	}
</style>
